package com.example.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class StateChangeBroadCastReceiver extends BroadcastReceiver {
	
	private static final String TAG = "StateChangeBroadCastReceiver";
	@Override
	public void onReceive(Context context, Intent intent) {
		if(intent.getAction().equals("com.example.statechange")) {
			String album = intent.getStringExtra("album");
			Log.i(TAG, album +" state is changed");
		}
	}

}
